import { Module } from '@nestjs/common';
import { AppController } from './app.controller';
import { AppService } from './app.service';
import { Log4jsModule } from '@nestx-log4js/core';
import { TypeOrmModule } from '@nestjs/typeorm';



import { ContentModule } from './content/content.module';
import { FileModule } from './upload/file.module';
import { ServeStaticModule } from '@nestjs/serve-static';


@Module({
  imports: [
    ServeStaticModule.forRoot({
      rootPath: "../public",
      serveRoot:"../public"
    }),
    Log4jsModule.forRoot(),
    TypeOrmModule.forRoot(),
    ContentModule,
    FileModule
  ],
  controllers: [AppController],
  providers: [AppService],
})
export class AppModule {}


